package com.it.travel.controller.admin;

import com.it.travel.common.RequiredPermission;
import com.it.travel.service.admin.AdminLogsService;
import com.it.travel.vo.Params.PageParams;
import com.it.travel.vo.Result;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/admin/log")
@CrossOrigin

public class AdminLogsController {

    @Resource
    private AdminLogsService adminLogsService;

    @RequiredPermission("sys:logs:find")
    @GetMapping("")
    public Result<?> getInfoPage(PageParams pageParams) {
//         adminUserService;
        Result<?> result = adminLogsService.getInfoPage(pageParams);
        return result;
    }
}
